package org.dromara.answer.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 题目对象 ai_questions
 *
 * @author Lion Li
 * @date 2025-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ai_questions")
public class AiQuestions extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 题目ID，主键
     */
    @TableId(value = "question_id")
    private Long questionId;

    /**
     * 题目内容
     */
    private String title;

    /**
     * 题目类型：single_choice-单选, multiple_choice-多选, fill_blank-填空, true_false-判断题
     */
    private String questionType;

    /**
     * 难度等级：1-5，默认为3
     */
    private Long difficulty;

    /**
     * 题目分类/标签
     */
    private String category;

    /**
     * 状态：0-禁用，1-启用
     */
    private Long status;

    /**
     * 题目分值
     */
    private Long score;

    /**
     * 题目解析
     */
    private String explanation;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private Long delFlag;

    /**
     * 答案
     */
    private String answer;

}
